fix rotation with search