Assert error when disabling

After “disabling” the shape using:

shape->setFlag(physx::PxShapeFlag::eSIMULATION_SHAPE, false);
shape->setFlag(physx::PxShapeFlag::eSCENE_QUERY_SHAPE, false);
shape->setFlag(physx::PxShapeFlag::eVISUALIZATION, false);

I’m getting this error https://imgur.com/a/lZTdZ when calling Simulate() and fetchResults(true)

*Using PhysX 3.4, VS2017, WIndows 10