fixed bug with tabs rendering incorectly