Update. Fix tabs not changing properly.

This fixes a small bug which causes the tabs to not update proper.