Fixed broken promise example