The Election Commission (EC) on Thursday directed the Ministry of Home Affairs to retain 25 companies of central forces in Andhra Pradesh even after the counting of votes on June 4 over fears of post-poll violence in the state as it conveyed its displeasure to the state chief secretary and the police chief amid recent incidents.