Fix bug stopping the links working correctly after a stock adjustment has been done