Fix with permission and command and permission mixup