changed access for properties $labels and fixes #6