fix version comparison