Fix nil file URL bug.