phonegap try address state fix