Fixed resizing fn call bug