possible fix for npe