Fixing logic bug introduced by pep8 recommendation change.