fix NPE in hover