fix static definition to var