Fixed check for link