properly fix ferret compilation bug