Fix iOS6 compatibilty #20