Fixed iOS bugs