Fix null pointer problems.