Fix initialization error by assigning a default value to a field