Fixed components count bug.