fixed getBounds deprecation error