Fix bug in project link security