Fixed bug in paper