Fixed typo in bounds retrieval.

Wrong bounds retrieval ends up with `Uncaught TypeError: Cannot read property 'min' of undefined`.