suppress a warning and fix a possible segv.