Corrected initialization function issue