Pattern Check Before Action

Fixed undefined `list`