'Fixed' the bug with the sample being nil sometimes