bug fix for when log was closed