Fixed paper delete function