swt xygraph: fix a typo and infinite loop bug