Fixing invalid segment logging in non-dev version.