fixed an initialization error