Fixed bug in package handler.