fix resizeBoxes to not resize to itslef