Fixed small bug in FlatfileProvider