fixed bug, fixed missing param in example