fix bug with folders creation