Fixing promise.