fix flood protection