Condition varies in different browser