Fixes the rejected flag bug for versions <4