Fixed stupid iteration bug.