fix regression (original fixed by ntfreak)