Fixed syntax in the newly added logic

Nothing much else to describe...