fix memory issue (swap usage)