fix NPE during screen rotation