fix bug, change type char to short int