Fixed runtime issue on iOS6