fix scope issue with done form