Fixed invalid filename issue