bug fix

1. tag document count bug fix
2. download attachment bug fix