some fixes for boxes