add float fix for clearing bug