If you have the time get a large water pistol and blast the ones doing the pecking. Behavior modification works every time. Add some interesting things for them to peck at. A whole cabbage an ear of corn throw raw oatmeal out scattered to keep them occupied.