Fixing scope for rake task