Fix cover resizing problem