fix platform rendering