     // MARK: Create views
     
     private func getCircleLayer(color: UIColor) -> CAShapeLayer {
-        let circlePath = UIBezierPath(ovalIn: CGRect(x: 0.0, y: frame.maxY - frame.size.height/4, width: frame.size.width/4, height: frame.size.height/4))
+        let circlePath = UIBezierPath(ovalIn: CGRect(x: 0.0, y: bounds.maxY - bounds.size.height/4, width: bounds.size.width/4, height: bounds.size.height/4))
         
         let circleLayer = CAShapeLayer()
         circleLayer.path = circlePath.cgPath

    }
    
    private func getLargeArcLayer(color: UIColor, lineWidth: CGFloat) -> CAShapeLayer {
        let radius = frame.size.height + lineWidth/2
        
        let largeArcpath = UIBezierPath(arcCenter: CGPoint(x: 0, y: frame.maxY),
                                        radius: radius,
                                        startAngle:  .pi * (3 / 2) + asin((lineWidth/2) / (radius + (lineWidth/2))),
                                        endAngle: -asin((lineWidth/2) / (radius + (lineWidth/2))),

    init(size: LiveIndicatorSize, color: UIColor) {
        super.init(frame: CGRect(x: 0, y: 0, width: size.rawValue, height: size.rawValue))
        
        let lineWidth = bounds.width/4
        
        circleLayer = getCircleLayer(color: color)
        largeArcLayer = getLargeArcLayer(color: color, lineWidth:  lineWidth)
