fixes controller reference