Float cast fix