fixed failure to convert rate to float