handle when foreground values are negative