fix wrong version comparison