fixed cleanup after build