Fixed the bug causing a lookup error
Updated the example