Fix compiler warning.
Fix uninitialised variable.
Fix typos.