bugfixes for the promises/a+ update