added error check to fix.rate