Aren't you changing the zValue of the rectangle to greater than 3 to bring it to the top of the stack? If that is the case, the added circle would be on top of the first circle but below the rectangle.