Guard against javascript cascading issue