Fix for trace_gases getting massive and killing the server.

Signed-off-by: Mloc-Argent <colmohici@gmail.com>