Forgot to return promise, fixes #1023