Fix command error throws