fixed object to promise