Fix command ending