fix loop condition
Merge branch 'default-count-fix' into all-custom-extensions