fix bug with points outside hull