corrected getPersonTitle() to set title IDs to the actual title IDs and not cast IDs