Fixed issues causes crashes and infinite loops. Now only failing on findMin/Max.