[FIX] catching div. by 0 when swap or memory is not available