fix promies resolve