Fix select contact and rotate bug.