double<-->float fix