fixes issue 1998