bugfix: closures inside static class methods