Fixing bug when compiling on < iOS 7