Fixed a nil error that occured for some odd reason (thnx blizzard)