fixed bug in use of Puz class