Fixed crashes with /setgperm and /unsetgperm