corrected previously missed api error