bug fix for strokenRect