Fix agent moh issue (bug #3383)