fix for broken contact logic