Fix box scaling