Fixed the boxes not clearing issue