Fix bugs in package skeleton.