Fixed behaviour of editable groups and items. Works cross-browser.