Fix converting of group permissions to comparator