Fixed another bug in do_define