Non-Solid blocks waterlogging when generating

Ive made a structure and ive got it to generate, but when it generates into a flooded cave, air replaces all the water as it should with the exception of waterloggable blocks. Is there a way to stop this?
Continue to help post