Fixed a bug in the dispatcher not collecting promises