Fix invalidation rake task