Fixed efficiency bug