Fixing error with unallowed commands