fixed erfn issue