fix stackoverflow in tab fragment