Fixed convertion from double to float warning