It's a bug to do with iterative parsing of code. Pressing CONTROL + S should force a full refresh of the parse and resolve these issues (until that bug (a tricky one) is fixed). You misdiagnosed that it was to do with the order or blocks.
Yeah, I know, but reordering the blocks fixes it so that you don't need to do the Ctrl+S thing all the time. At least until you fix it further down the track.