Couple of permission and command bugfixes.