Initialize variables correctly