Resize event implemented, does crash