Fixed issues with commands not sending