Minor fix for app.state updates listener