fix the resizing transition