fix for command throwing errors