Added fixes to pooling/ and events/

Signed-off-by: Archit Shukla <architshukla2@gmail.com>