check in link fixed logic