fix case of blank p2 value retrieving non-existant value from p3