Fixed bug with missing reset of obj weights introduced in cleanup.