fix a cpu null pointer error