Fixes sidebar active state issue