Fix to made modal+nav_tab working

This patch fixes my issue #29.