8 relays and 8 acs712 sensors and 8 solenoids, delay off time is not working

I hooked up diodes at the leads where the solenoids are connected and that solved the issue.
Seems it was voltage spikes from the solenoids.