second realpath fix