CDB-2891 bugfix.non static attribute access inside static scope