Fixed a error that caused the entire mod to break.