This happens in unit testing; add temporary workaround