bugfix in getBounds