Fixed context switch in action.php