Fix NameError on API

use @member instead of member