Remove unnecessary square brackets