fixed some problems in example