fix a bug of getting return code