The bug was just an superflous print statement.