fixed "CGContextSaveGState: invalid context 0x0...."

fixed "CGContextSaveGState: invalid context 0x0...."