Fixed minY calculation in updateBounds

Thanks to @6220119 for spotting this. Issue #952