Fix portable mode