fix some refresh bugs
Merge branch 'dev' of https://github.com/tehn/aleph into dev