Fixed task context menu function