fixed command crash