fixed badly implemented check whether notifications are enabled