Fix bug of mds service can not start.

Signed-off-by: Ji You <jiyou09@gmail.com>