fix for #3064, context menu actions for packages

@ussuri
Also, I'd use a more precise type here.