Fixed the shmem OOM error which is referenced on #2028 Signed-off-by: Boris Karasev <karasev.b@gmail.com>