fix resizing stuff