Fix returning promise chain.