fix for xy plot