Fix NPE on configuration