fix null pionter