fixed a bug with float arrays