Workaround for browser sometimes not toggling back after being collapsed.