Fixed bug in handling of search results for guard role.
Changed priority number fields in forms to number.