Fix the type signature of `rebuild` & add a comment.