fixed query_objdir return val