small api fix