ME: refactored 'labels' action to fix type error

closes #512