fix bug in iOS6 logging