fixed exception while cleaning packages..