Fix in error of null engine_type in plan