fix NPE when accessing lists that have not been initialized