Fix error in the access rules users groups options

This fix, came from the Anste Tests of proxy. It's a little bit ugly so please any comment to improve it or do it otherwise would be really welcome.