Fixed crash of reader