fix problem with static context evaluation