Fixed out-of-memory failure exceptions.