Had been incorrectly counting result