fixed bug fix in executing callback for io event