Fixed errors that occurred when certain modules were not configured/enabled.