Math: Bug fix: Care when handling empty boxes