fixed bug, that property and class can have the same file to write to.