fixed real-doublereal issue