fix undefined filename