fixing api issue