fixing bug where changing folder didnt work