remove ProcessPatterns from admin
and fix a small bug in change_pattern