Fixed out of memory error with high load