Fix peer version checking