undef var in closedb