hopefully fixing resize