fix some memory issues