Fixed version negotiation bug