bug fix for creating folders automatically