Changed 'item' to 'indicator' in attach() and detach().