Bug/Exception in writeSingleFile killed/fixed