Bug fixed where boxes would overlap if they were too small