fixed peg class error