fixed some adapt bug，add some comment.