Fixed reset_program, wasn't rewinding file