fixed command detection errors