Make pgn_panestyle working (with small errors)