fixes bug with static name value