Fixed memory usage on linux..maybe