It does happen in 1.12
not sure, haven't checked
BTW this is a duplicate of MC-125188 i think
Oh, thanks for the fix.
I tried It without OptiFine, Didn't work again
confirmed for 1.13
It does happen in 1.12