fixes rules to prevent delete part of source files