fix wrong sample code