bug fixes for nonproportional contrast