fix bug on efficiency