fixes exception while loading custom folders