Fixed bug for spaces on filename