Fixes 5.3 bug where  isnt valid inside a closure