FIX
# bug when switching between tabs