Fix bug at getting exception line number