fix can not get error code