Fix bug whith files removing