BUG Fix code bug in paper

Pointed out by reviewers