fixed a problem with overflow in criteria box