fixed the bug on the boxes