fix bugs in dbmng_file_create_link