Fixed bgColorIndex and Updated