Fix same function name bug