remove the line causing the error after directory cleanup