Fix pretty bad import bug

See attached test that fails without this patch.