fix BOX/UNBOX mechanism