Oh hold on, this isn't actually doing a solve at all.  I think you should use (x[1] < EPSILON) and x[1] > 1 - EPSILON as the limits
where EPSILON is an appropriately chosen small number.