fix vidId var statement