bug fix , memlimit