fix a bug where the scope might be invalid if the selected scope record can't be found in the database
fix a bug where the scope might be invalid if the selected scope record can't be found in the database

gdslink/rails_admin,gdslink/rails_admin,gdslink/rails_admin,gdslink/rails_admin