fixed drawing on edge of rectf