Fixed IndexOutOfBoundsException with CCRenderState.copyOf