fix lua check of survey content type id