fixed bufferoverflow on trigger output