Fix preview panel not refreshing if container is changed