Fix NULL pointer access.
Cleanup
Recompile.