Fixed minor bugs in detector node