Fix mixing of relative and absolute line numbers