This is probably because you either used an unsuitable type of cream or you didn't whisk it for long enough. The cream you use must be suitable for whipping, and the filling should be whisked until thick.