Fix incorrect variable initialization