fix read on char device