fixed box.select performance degrade after gh-498 fix