[FIX]Fixed some traceback and error.