Fixed two typos resulting in uninitialised variable access