This is the way iReal pro works with codas and second endings. The player cannot handle both. So you need to choose either one but not both in the same chart. A while ago, I've reported this issue, but I guess it must be too complicated to change it.
I've made a chart of that song as well (see the thread below) and the player can play the structure of the song correctly.