fix attempts refresh
Merge pull request #44 from kareth/master

fix refreshing attempts