fixed problems with reader