fixing high cpu error