Please keep variables consistent. In the first notification you are using a different var name for the same functionality.