Fixed a bug with errors.
Fixed a bug that was happening every so often.