Fixed error in CBLModelFactory method.