Fix bug in choosing paper path