Fix collision check.