Fix promise use.