bugfix: opening file in client side may fail.