Fix API usage