Fixed the handling of no paper found