Fixing a couple of mistakes in the new promises code.