bug fix in os matching