workaround for some potential NPEs