fixes controller factory