Fixed centering of the focus point as it was not working correctly in all cases