attempt to workaround cannot convert NULL to string error