fixed replacing fail, license restored