fix closure for 5.3