fixed status update outside trigger