fix #220 (hibernate store count)