He did what was right in the eyes of the Lord, but not wholeheartedly.