Fix memory bug (messing with private API is a bad idea)