fixed: undefined obj
Added history