better error with non-existent labelsDiv