fixes controller error