fix issue with trusted browser and wrong code