Trying desperately to fix errors when ties happen