wrong order of closing characters