fix create_summary function locking