fix package path estimation