fix issue when passing only wshref