fix promise example