fix some exception