Quick bug fix - assign variable before we use it