fix ios7 timing