moving tag to the correct place