fix the bug in file resource processor