fix the bug that hooks of inline_styles can see the locals of models variable