bug fix for local single file