fix package reinstall (fix #24)