Implemented event wrong in generic class