Fixes bug writing parent UUID