When you modified pins.h, did you also redefine the pin for the print fan? In the earlier thread discussing your melt-down, I proposed swapping the two values. Maybe there's a conflict going on if pin 9 is defined for both the print fan and the heat bed.