fix nullPointerExcetion,float param