Fixed bugs in reminder which return null pointer exception