Fixed a bug where the promise wasn't resolving on a subsequent request