Bugfix ported to managemforce.c