fixed bug with api16