fix package check