memory issue fix test