Crash on resize seems to be fixed, but I do not understand why...