Modified a mem bug