Fixing null reference exception.