fix support undefined error