Fixed a bug in creating fileref from fileref