Fixed incorrect variable initialization