fix bug in create link