Bugfix for when comments exist at end of dictionary