fix read handler not being called as data is already read