fix sql_duration and rendering_duration