fixed a bug in getNounsAfterPtn()