negative x math fix