fixed bug with filename