fix bug with C not working