Fix line and char index, fix #19