fixing the initialization error