Bug fix rake task file