fixed double intent bug