Fixed error with mod creation