fixes bug with second rate