Missed that type is required for attach listener.