fix code issues in lesson_6