Fixed null reference pointers.