Fixing format=labels functionality