Fixed crashing bug due to config and folders