Bug with dropdown when adding/editing restriction fixed