fix a bug of return 0
add getter = isRefreshing for refreshing