fixed NOAPI bug