how do I fix api