- Fixed promise resolving