add adjustment for the ios7