fixed cleanup when nothing can be updated