Changed the method of getting the package name for the problem.