fix bug when showing empty filename in status bar