fix bug of code is not integer