Fixed promise chaining