fix division in update_bounds