fix function name passing as tag