fixing bug for custom cells in iOS 8