Fixes issue with not checking the right constant