error while reading from fragment