Tried to solve the delete link problem