box assignment issue fixing