Fixing end case for read