Flood protection bugfix