core: fix color display of last color number + 1 (closes #101)