Fixed portable mode

Signed-off-by: Dalton Pelc <daltonjpelc@gmail.com>