fix broken promise chaining example