fixed example crashing on ios7