Fixed promise definition.