fixing delete during build