Fix "reference to undefined property options.referer" warning