fix bugs reader