fixed problem with package checking