Remove a closing dict to make file valid