Fixed empty filename bug