fix using this in closure for 5.3