Fixed something i never tested (switching tabs)