Fixed read/write bug with new version of driver