Fixed wrong error message when using flooding code as harmonic