The app goes directly to root folder when the current folder does not exist anymore after refreshing with server