Fixed issues with iOS6

Signed-off-by: Gabriel Boucher <gboucher@curelator.com>