fix ios rendering bug