Fix bug in promise import.