Fix offset issue when using relative `container`