Fixes rake task errors.