You case $action twice.