changed type of Closed again…
compile function (and it works!)