Fix sample app in ios 6