fixes #5233 CommensAction replace getField with getFieldVar

Replaced getField withgetFieldVar and tested, pushed the code for review, please check it.