Fixed a critical bug that pulls the CPU up to 100% always - thus slowly decrease the frame rate.