Fixed promises that are functions.