Fixed using the wrong pointer type float to float[]