Corrected box assignment