fixed some bugs
added test for undeformed mesh

and finally fixed bug thanks to it!