undef data exception in pickle_handler