Fixed memory overlap issue in libratbox