Fixed a Javascript error with the wbDisable logic