Fixed issues in detector temperature