Bug Fix

Fixed for Xcode6-Beta2 and iOS8 Beta2