fixed mistake in computeCriticalPoints