free bug was clearing object with no data