fix MCFileTreeWriter to avoid failing tests