Fixing closure for <5.4