Try to fix the promise error