Contradiction with 2 Kings 21:24
2 Kings 21:26 describes how the people of the land made Josiah king, while 2 Kings 21:24 states that the people of the land executed the conspirators and made Josiah king, showing consistency rather than contradiction.
2 Kings 21:24: And the people of the land slew all them that had conspired against king Amon; and the people of the land made Josiah his son king in his stead.