fixed issue with drawPane