fix bugs
Merge pull request #1 from Praznat/numpyImp

fix bugs