Fix link dialog bug