Update RECommonFunctions.m

iOS 7.1  bug fix