fixed an error in the interface api