fix action name to function name