fixed path on writeData