fixed rendering of boxes