more bug fixes for 3stg