Fix regression in add_line_at making line numbers start atf 0 instead of 1