prevent a rare null exception