Fixed memory initialization error