Small fix for portable mode