Fixes javascript error preventing ungrouping of questions