fix path and int type bug