Fixing rake tasks