Filesystem: Small error corrections and consistency check