Fixed the box rendering problem. Will now merge this branch.