fix NPE during clear scene