Fix for centring bug