Fix notifications conditions check