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