Prevent NPE. Close #425.