Refix wrong api of attend: