Fixed incompatible types (double instead of float)