Fixing controller errors.