fix some missing variables