Grain store decision flawed, says judge