fixed bug with numpy floats