Fix two variable initializations (which could lead to crash)