fixed wrong box bug