Fix folder name issue in functions.