fixed bug in iphone rendering