Fix trouble in promote script.