fix errors on variants