Fix variable initialization