Fix some errors in action.php