fix bug which is caused by improper data type