fixed undefined var by line num