Fixed bug in ViewFlatMapped implementation