Update position when scope changes