Fixes validates_uniqueness_of scopes