Fix API usage in world wrapper