Unable to move to clicked tab in some case