fixed IDE deletes scripts in some cases