fix links controller create remotely function