Fixed bug in protection.
Fixed bug in FlatfileProvider.