fix monthly ranking in patient