Fix the unexpected closing