Remove null reference exception.