Fixed bug in oome detection