Fixed a bug where a buttload of errors appeared.