Fixed bug in simple reader