fix bug with filename from external app