fix baseFileName bug