fixed box bug