fix NPE due to copypasta