fixed bug in personDetails query