Fixed iOS bugs.