Minor fixes, getBounds implementation (thanks dimanux)