File reset on empty fixes