Prime Minister Narendra Modi's temple visits in Nepal were a violation of the poll code on a day Karnataka voted, Congress leader Ashok Gehlot said today. "As there is model code of conduct in Karnataka, PM Modi planned to pray at temples in Nepal instead, just to influence voters. This is not a good trend for democracy. Why did he only choose today as the day?" Mr Gehlot said, alleging that the Prime minister had timed his visit to try and influence voters.