fixes for crash
Merge branch 'bug368_resize_Crash' into devel