add fixes for ios6