fix ios7 support