loading count for displayLoading bugfix