Fixed a bug with force average

This is a fix a bug with force average.