Fixed bug when changing source folder