fixed bug with host api