fix chef not defined issue