small fix with static vs dynamic vars