Conditions work in Chrome but not Firefox or IE