fix cast exception by change Float to Double