Do change project build state when removing packages properly. Progress ...

...issue#1783.