fix bugs in peagun