Cleared up errors in detector