fix another implicit float cast