Problem with IRF540N based brushed motor controller

I just tried your suggestion of adding zener between gate and source. (1N5245BTR). The motor controller throttled up, suddenly went to full throttle, and blew the mosfets. I was monitoring gate driver during this time, was still outputting PWM, not a solid output. Here are images of the actual board:



Thanks,
Jack