Lots of bs to make editor more stable