Fix crash on resizing plasma