Fixes for blank counting