fix pkg rule