Then should this not be in the if (action is ContextAction) block?