Fixed a bug causing the notifications service to fail