Fix stupid null pointer error.