Float to double error fixed