Fix bad return value on read event callback