Fixed box rendering issues