I am sorry this wasn't a real bug I was just being stupid I had a /kill @e command in the background and I didn't know it counts the painting as a entity again sorry to waste your time
I am sorry this wasn't a real bug I was just being stupid I had a /kill @e command in the background and I didn't know it counts the painting as a entity again sorry to waste your time