remving the bug that crashes the system