fixed mysterious c error in terminal.