Fix appending promise