Fix #6 problem in inheritance with packages