Fix bugs in ext4 and gpt reader