fixed beginpath