frontend: fix the colspan calculation for single-version view