Fixed problem in notifications model