fixed static ref error