workarounds, I do not understand why it segfault, it should *NOT*