Fix collision condition