bug fix in css disabled check