delegate event bug fixing