fix terminal not working if foldername is changed