Fixes #1916: Fixed unimproved packages.  Added regression test.