PRAGUE (AP) — The Czech Republic’s highest court ruled Wednesday to cancel several provisions of the country’s electoral law as discriminatory for small parties.

The Constitutional Court dismissed those rules which it said gave big parties disproportionately high numbers of parliamentary seats after elections, saying it’s not in line with the proportional representation electoral system used in elections for the lower house of Parliament.

The court has also canceled parts of the law under which parties join forces to run as coalitions. To gain parliamentary seats, any party needs to reach a 5% threshold of the popular vote. So far, two-party coalitions needed to win 10%, three parties needed 15% and so on. The ruling also sets the 5% threshold for any coalition.

The changes were approved at the request of a group of 21 lawmakers in Parliament’s upper house, the Senate.

Wednesday’s ruling came about eight months before the Oct. 8-9 general election. Interior Minister Jan Hamacek said he respected the ruling and invited the representatives of parliamentary parties to discuss the possible options they have.

Both chambers of Parliament need to agree on necessary changes to amend the electoral law in line with the court’s verdict.