Problem with two tab pages

Hey guys,
I`m getting problem with two or more pages with tabs.

I created an repo to be easy to understand:

The problem is: switch to pages that do not have tabs(blue and yellow page) everything is ok.
But when you switch from one tab page(red or green pages) the content does not change.

Anyone can help me, with this problem or this is a bad implementation?