[fish] fix the wrong judgement