fixing late_command script