redirect didn't work as I expected on linux