fixed promise after upgrade to 0.9