Fix mode when creating turtle file