You should have folded. If you do not and decide to play this hand, you must raise all-in pre-flop. Your stack is just big enough to possibly win the hand uncontested. Limping and losing here makes your next all-in play slightly above standard (3-4 X BB) raise with little possibility of forcing all to fold. Especially when short stacked you must retain the ability to put pressure on your opponents. You can not limp and try to hit flops with the smaller chip stack. If you start pushing your stack at the proper time you will win some pots without seeing a flop taking less risks of busting out. If you get an all-in call, well hopefully you have a little something to possibly make a hand with. You can not wait to get AA when sitting in front of a tiny stack, sometimes you just have to shove.
There are times, especially after losing a big pot, when you are crippled and can not wait for the better starters. In these cases, pick your spot and shove your chips, the worst that can happen is you are gone, the best is to double up or more.
Later,

