If you did a 40% water change with an elevated ammonia and nitrite reading I suggest you do further much larger water changes, perhaps in the region of 80%, to further reduce the ammonia and nitrite reading until they are at 0 ppm. These readings should always be 0 ppm.
Cory’s are very...