fix ferret compilation bug