This is probably correct...and he wasn’t “competent” to be in free society long before the murder took place as is clear from the record. He needed long term if not permanent institutionalization.
Now, these judges who allowed this need to be deemed incompetent to remain on the bench.
Where is Ol’ Sparky when you need him?