Fix build error on 5.3 using self in closure