Fixed a version negotiation bug