libpaper: Fix splitting