tag is not switching