Fix line number in layouts which resolve non line value.