Fix empty filename during export

Signed-off-by: Umair Khan <omerjerk@gmail.com>