fix in write subscribe for kqueue