Exportting as md2 (I'm not sure if this is the right place to ask this...)

I tried to export a model and animation for a 3D game test. I selected export->MD2 (I am going to use irrlicht so md2 is probably the best way to export) Without the animation everything works just fine.

I made an animation and exported again. The model goes crazy.
http://www.elisanet.fi/porzi/screen.jpg

if i press ctrl+z everything goes back to normal. The exported file is also a mess.

How can I export a model with an animation as md2 correctly?

Thanks in advance!