fix wrong line number in errors