Fixed plugin ID generation and handling