Fixed previous patch for rules when moving.