Fixed issue with commands not being recognised