fix reads overlfow