Fixed get notifications method.