Fix line numbers in error stacks