Error with lon less in interval (-1,1)