Fixed some display bugs on iOS devices.