Fixed error when that was caused by adding NSNull to NSUserDefaults. By adding a category method to NSArray & NSDictionary that removes all keys for NULL values;