memory growth fixes