Accidentally put file in write mode