fix bug in PostUpdater script