fixed bug where ObjManager was still using old dirty variable