Fixed a very annoying CPU consuming error.